package com.foo.Bussinesstest;

import static org.junit.Assert.assertEquals;

import org.example.www.globalsearch.GetAllData;
import org.example.www.globalsearch.GetAllDataResponse;
import org.globalSearchexample.ws.GetAllDataFaultException;
import org.globalSearchexample.ws.GlobalSearchService;
import org.junit.Test;


public class GlobalSearchTest 
{
	@Test
	public void getAllData() throws GetAllDataFaultException
	{
		GlobalSearchService service = new GlobalSearchService();
		GetAllData getAllData = new GetAllData();
		getAllData.setIn("");
		GetAllDataResponse response =  service.getAllData(getAllData);
		
		assertEquals(50,response.getOut().getRestaurantData().getRestaurant().length);
		assertEquals(70,response.getOut().getMovieData().getMovie().length);
		
	}

}

